<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>api_shim.core.file_system</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;api_shim ::
        <a href="api_shim.core-module.html">Package&nbsp;core</a> ::
        Module&nbsp;file_system
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="api_shim.core.file_system-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="api_shim.core.file_system-module.html">Module api_shim.core.file_system</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># Copyright 2011 the original author or authors.</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Licensed under the Apache License, Version 2.0 (the "License");</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># you may not use this file except in compliance with the License.</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># You may obtain a copy of the License at</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#      http://www.apache.org/licenses/LICENSE-2.0</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Unless required by applicable law or agreed to in writing, software</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># distributed under the License is distributed on an "AS IS" BASIS,</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># See the License for the specific language governing permissions and</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># limitations under the License.</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">datetime</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Package api_shim.core=api_shim.core-module.html"><a title="api_shim.core" class="py-name" href="#" onclick="return doclink('link-0', 'core', 'link-0');">core</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module api_shim.core.streams=api_shim.core.streams-module.html"><a title="api_shim.core.streams" class="py-name" href="#" onclick="return doclink('link-1', 'streams', 'link-1');">streams</a></tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">org</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Module api_shim.vertx=api_shim.vertx-module.html"><a title="api_shim.vertx" class="py-name" href="#" onclick="return doclink('link-2', 'vertx', 'link-2');">vertx</a></tt><tt class="py-op">.</tt><tt class="py-name">java</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="api_shim.core" class="py-name" href="#" onclick="return doclink('link-3', 'core', 'link-0');">core</a></tt><tt class="py-op">.</tt><tt class="py-name">AsyncResultHandler</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">org</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name"><a title="api_shim.vertx" class="py-name" href="#" onclick="return doclink('link-4', 'vertx', 'link-2');">vertx</a></tt><tt class="py-op">.</tt><tt class="py-name">java</tt><tt class="py-op">.</tt><tt class="py-name">platform</tt><tt class="py-op">.</tt><tt class="py-name">impl</tt><tt class="py-op">.</tt><tt class="py-name">JythonVerticleFactory</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-5" class="py-name"><a title="api_shim.core" class="py-name" href="#" onclick="return doclink('link-5', 'core', 'link-0');">core</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Module api_shim.core.buffer=api_shim.core.buffer-module.html"><a title="api_shim.core.buffer" class="py-name" href="#" onclick="return doclink('link-6', 'buffer', 'link-6');">buffer</a></tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Class api_shim.core.buffer.Buffer=api_shim.core.buffer.Buffer-class.html"><a title="api_shim.core.buffer.Buffer" class="py-name" href="#" onclick="return doclink('link-7', 'Buffer', 'link-7');">Buffer</a></tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-8" class="py-name"><a title="api_shim.core" class="py-name" href="#" onclick="return doclink('link-8', 'core', 'link-0');">core</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Module api_shim.core.handlers=api_shim.core.handlers-module.html"><a title="api_shim.core.handlers" class="py-name" href="#" onclick="return doclink('link-9', 'handlers', 'link-9');">handlers</a></tt> <tt class="py-keyword">import</tt> <tt id="link-10" class="py-name" targets="Class api_shim.core.handlers.AsyncHandler=api_shim.core.handlers.AsyncHandler-class.html"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-10', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-name">__author__</tt> <tt class="py-op">=</tt> <tt class="py-string">"Scott Horn"</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt id="link-11" class="py-name" targets="Variable api_shim.core.buffer.__email__=api_shim.core.buffer-module.html#__email__,Variable api_shim.core.event_bus.__email__=api_shim.core.event_bus-module.html#__email__,Variable api_shim.core.file_system.__email__=api_shim.core.file_system-module.html#__email__,Variable api_shim.core.handlers.__email__=api_shim.core.handlers-module.html#__email__,Variable api_shim.core.http.__email__=api_shim.core.http-module.html#__email__,Variable api_shim.core.javautils.__email__=api_shim.core.javautils-module.html#__email__,Variable api_shim.core.net.__email__=api_shim.core.net-module.html#__email__,Variable api_shim.core.parsetools.__email__=api_shim.core.parsetools-module.html#__email__,Variable api_shim.core.shared_data.__email__=api_shim.core.shared_data-module.html#__email__,Variable api_shim.core.sock_js.__email__=api_shim.core.sock_js-module.html#__email__,Variable api_shim.core.ssl_support.__email__=api_shim.core.ssl_support-module.html#__email__,Variable api_shim.core.streams.__email__=api_shim.core.streams-module.html#__email__,Variable api_shim.core.tcp_support.__email__=api_shim.core.tcp_support-module.html#__email__,Variable api_shim.vertx.__email__=api_shim.vertx-module.html#__email__"><a title="api_shim.core.buffer.__email__
api_shim.core.event_bus.__email__
api_shim.core.file_system.__email__
api_shim.core.handlers.__email__
api_shim.core.http.__email__
api_shim.core.javautils.__email__
api_shim.core.net.__email__
api_shim.core.parsetools.__email__
api_shim.core.shared_data.__email__
api_shim.core.sock_js.__email__
api_shim.core.ssl_support.__email__
api_shim.core.streams.__email__
api_shim.core.tcp_support.__email__
api_shim.vertx.__email__" class="py-name" href="#" onclick="return doclink('link-11', '__email__', 'link-11');">__email__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"scott@hornmicro.com"</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt id="link-12" class="py-name" targets="Variable api_shim.core.buffer.__credits__=api_shim.core.buffer-module.html#__credits__,Variable api_shim.core.event_bus.__credits__=api_shim.core.event_bus-module.html#__credits__,Variable api_shim.core.file_system.__credits__=api_shim.core.file_system-module.html#__credits__,Variable api_shim.core.handlers.__credits__=api_shim.core.handlers-module.html#__credits__,Variable api_shim.core.http.__credits__=api_shim.core.http-module.html#__credits__,Variable api_shim.core.javautils.__credits__=api_shim.core.javautils-module.html#__credits__,Variable api_shim.core.net.__credits__=api_shim.core.net-module.html#__credits__,Variable api_shim.core.parsetools.__credits__=api_shim.core.parsetools-module.html#__credits__,Variable api_shim.core.shared_data.__credits__=api_shim.core.shared_data-module.html#__credits__,Variable api_shim.core.sock_js.__credits__=api_shim.core.sock_js-module.html#__credits__,Variable api_shim.core.ssl_support.__credits__=api_shim.core.ssl_support-module.html#__credits__,Variable api_shim.core.streams.__credits__=api_shim.core.streams-module.html#__credits__,Variable api_shim.core.tcp_support.__credits__=api_shim.core.tcp_support-module.html#__credits__,Variable api_shim.vertx.__credits__=api_shim.vertx-module.html#__credits__"><a title="api_shim.core.buffer.__credits__
api_shim.core.event_bus.__credits__
api_shim.core.file_system.__credits__
api_shim.core.handlers.__credits__
api_shim.core.http.__credits__
api_shim.core.javautils.__credits__
api_shim.core.net.__credits__
api_shim.core.parsetools.__credits__
api_shim.core.shared_data.__credits__
api_shim.core.sock_js.__credits__
api_shim.core.ssl_support.__credits__
api_shim.core.streams.__credits__
api_shim.core.tcp_support.__credits__
api_shim.vertx.__credits__" class="py-name" href="#" onclick="return doclink('link-12', '__credits__', 'link-12');">__credits__</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"Based entirely on work by Tim Fox http://tfox.org"</tt> </tt>
<a name="FileProps"></a><div id="FileProps-def"><a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt> <a class="py-toggle" href="#" id="FileProps-toggle" onclick="return toggle('FileProps');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html">FileProps</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="FileProps-expanded"><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">    <tt class="py-docstring">"""Represents the properties of a file on the file system"""</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"> </tt>
<a name="FileProps.__init__"></a><div id="FileProps.__init__-def"><a name="L30"></a><tt class="py-lineno"> 30</tt> <a class="py-toggle" href="#" id="FileProps.__init__-toggle" onclick="return toggle('FileProps.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">java_obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.__init__-expanded"><a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">java_obj</tt> </tt>
</div><a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FileProps.creation_time"></a><div id="FileProps.creation_time-def"><a name="L34"></a><tt class="py-lineno"> 34</tt> <a class="py-toggle" href="#" id="FileProps.creation_time-toggle" onclick="return toggle('FileProps.creation_time');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#creation_time">creation_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.creation_time-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.creation_time-expanded"><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-docstring">"""return [Time] The creation time of the file."""</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">fromtimestamp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">creationTime</tt><tt class="py-op">.</tt><tt class="py-name">getTime</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-number">1000</tt><tt class="py-op">)</tt> </tt>
</div><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FileProps.last_access_time"></a><div id="FileProps.last_access_time-def"><a name="L39"></a><tt class="py-lineno"> 39</tt> <a class="py-toggle" href="#" id="FileProps.last_access_time-toggle" onclick="return toggle('FileProps.last_access_time');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#last_access_time">last_access_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.last_access_time-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.last_access_time-expanded"><a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt class="py-docstring">"""return [Time] The last access time of the file."""</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">fromtimestamp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">lastAccessTime</tt><tt class="py-op">.</tt><tt class="py-name">getTime</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-number">1000</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FileProps.last_modified_time"></a><div id="FileProps.last_modified_time-def"><a name="L44"></a><tt class="py-lineno"> 44</tt> <a class="py-toggle" href="#" id="FileProps.last_modified_time-toggle" onclick="return toggle('FileProps.last_modified_time');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#last_modified_time">last_modified_time</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.last_modified_time-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.last_modified_time-expanded"><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-docstring">"""return The last modified time of the file."""</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">datetime</tt><tt class="py-op">.</tt><tt class="py-name">fromtimestamp</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">lastModifiedTime</tt><tt class="py-op">.</tt><tt class="py-name">getTime</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">/</tt> <tt class="py-number">1000</tt><tt class="py-op">)</tt>         </tt>
</div><a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">     </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt>  </tt>
<a name="FileProps.directory"></a><div id="FileProps.directory-def"><a name="L49"></a><tt class="py-lineno"> 49</tt> <a class="py-toggle" href="#" id="FileProps.directory-toggle" onclick="return toggle('FileProps.directory');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#directory">directory</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.directory-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.directory-expanded"><a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-docstring">"""return is the file a directory"""</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">isDirectory</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line"> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FileProps.other"></a><div id="FileProps.other-def"><a name="L54"></a><tt class="py-lineno"> 54</tt> <a class="py-toggle" href="#" id="FileProps.other-toggle" onclick="return toggle('FileProps.other');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#other">other</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.other-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.other-expanded"><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-docstring">"""return Is the file some other file type?"""</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">isOther</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FileProps.regular_file"></a><div id="FileProps.regular_file-def"><a name="L59"></a><tt class="py-lineno"> 59</tt> <a class="py-toggle" href="#" id="FileProps.regular_file-toggle" onclick="return toggle('FileProps.regular_file');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#regular_file">regular_file</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.regular_file-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.regular_file-expanded"><a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-docstring">"""returns   Is it a regular file?"""</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">isRegularFile</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FileProps.symbolic_link"></a><div id="FileProps.symbolic_link-def"><a name="L64"></a><tt class="py-lineno"> 64</tt> <a class="py-toggle" href="#" id="FileProps.symbolic_link-toggle" onclick="return toggle('FileProps.symbolic_link');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#symbolic_link">symbolic_link</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-docstring">"""returns is it a symbolic link?"""</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">isSymbolicLink</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FileProps.size"></a><div id="FileProps.size-def"><a name="L69"></a><tt class="py-lineno"> 69</tt> <a class="py-toggle" href="#" id="FileProps.size-toggle" onclick="return toggle('FileProps.size');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileProps-class.html#size">size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileProps.size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileProps.size-expanded"><a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-docstring">"""returnsthe size of the file, in bytes."""</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method api_shim.core.file_system.FileProps.size()=api_shim.core.file_system.FileProps-class.html#size,Method api_shim.core.http.HttpServerFileUpload.size()=api_shim.core.http.HttpServerFileUpload-class.html#size,Method api_shim.core.http.MultiMap.size()=api_shim.core.http.MultiMap-class.html#size,Method api_shim.core.shared_data.SharedSet.size()=api_shim.core.shared_data.SharedSet-class.html#size"><a title="api_shim.core.file_system.FileProps.size
api_shim.core.http.HttpServerFileUpload.size
api_shim.core.http.MultiMap.size
api_shim.core.shared_data.SharedSet.size" class="py-name" href="#" onclick="return doclink('link-13', 'size', 'link-13');">size</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"> </tt>
<a name="FSProps"></a><div id="FSProps-def"><a name="L73"></a><tt class="py-lineno"> 73</tt> <a class="py-toggle" href="#" id="FSProps-toggle" onclick="return toggle('FSProps');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="api_shim.core.file_system.FSProps-class.html">FSProps</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FSProps-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="FSProps-expanded"><a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">    <tt class="py-docstring">"""Represents the properties of a file system"""</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">   </tt>
<a name="FSProps.__init__"></a><div id="FSProps.__init__-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="FSProps.__init__-toggle" onclick="return toggle('FSProps.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FSProps-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">java_obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FSProps.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FSProps.__init__-expanded"><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">java_obj</tt> </tt>
</div><a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FSProps.total_space"></a><div id="FSProps.total_space-def"><a name="L80"></a><tt class="py-lineno"> 80</tt> <a class="py-toggle" href="#" id="FSProps.total_space-toggle" onclick="return toggle('FSProps.total_space');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FSProps-class.html#total_space">total_space</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FSProps.total_space-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FSProps.total_space-expanded"><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-docstring">"""returns  the total space on the file system, in bytes."""</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">totalSpace</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FSProps.unallocated_space"></a><div id="FSProps.unallocated_space-def"><a name="L85"></a><tt class="py-lineno"> 85</tt> <a class="py-toggle" href="#" id="FSProps.unallocated_space-toggle" onclick="return toggle('FSProps.unallocated_space');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FSProps-class.html#unallocated_space">unallocated_space</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">        <tt class="py-docstring">"""returns unallocated space on the file system, in bytes."""</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">unallocatedSpace</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="FSProps.usable_space"></a><div id="FSProps.usable_space-def"><a name="L90"></a><tt class="py-lineno"> 90</tt> <a class="py-toggle" href="#" id="FSProps.usable_space-toggle" onclick="return toggle('FSProps.usable_space');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FSProps-class.html#usable_space">usable_space</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt class="py-docstring">"""returns usable space on the file system, in bytes."""</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">usableSpace</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"> </tt>
<a name="AsyncFile"></a><div id="AsyncFile-def"><a name="L94"></a><tt class="py-lineno"> 94</tt> <a class="py-toggle" href="#" id="AsyncFile-toggle" onclick="return toggle('AsyncFile');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="api_shim.core.file_system.AsyncFile-class.html">AsyncFile</a><tt class="py-op">(</tt><tt class="py-base-class">core</tt><tt class="py-op">.</tt><tt class="py-base-class">streams</tt><tt class="py-op">.</tt><tt class="py-base-class">ReadStream</tt><tt class="py-op">,</tt> <tt class="py-base-class">core</tt><tt class="py-op">.</tt><tt class="py-base-class">streams</tt><tt class="py-op">.</tt><tt class="py-base-class">WriteStream</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AsyncFile-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="AsyncFile-expanded"><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">    <tt class="py-docstring">"""Represents a file on the file-system which can be read from, or written to asynchronously.</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt class="py-docstring">    The file is also a read stream and a write stream. This allows the data to be pumped to and from</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt class="py-docstring">    other streams, e.g. an HttpClientRequest instance, using the Pump class</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="AsyncFile.__init__"></a><div id="AsyncFile.__init__-def"><a name="L99"></a><tt class="py-lineno"> 99</tt> <a class="py-toggle" href="#" id="AsyncFile.__init__-toggle" onclick="return toggle('AsyncFile.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.AsyncFile-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">java_obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AsyncFile.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AsyncFile.__init__-expanded"><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">java_obj</tt> </tt>
</div><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"> </tt>
<a name="AsyncFile.close"></a><div id="AsyncFile.close-def"><a name="L102"></a><tt class="py-lineno">102</tt> <a class="py-toggle" href="#" id="AsyncFile.close-toggle" onclick="return toggle('AsyncFile.close');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.AsyncFile-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AsyncFile.close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AsyncFile.close-expanded"><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">handler</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method api_shim.core.file_system.AsyncFile.close()=api_shim.core.file_system.AsyncFile-class.html#close,Method api_shim.core.http.HttpClient.close()=api_shim.core.http.HttpClient-class.html#close,Method api_shim.core.http.HttpServer.close()=api_shim.core.http.HttpServer-class.html#close,Method api_shim.core.http.HttpServerResponse.close()=api_shim.core.http.HttpServerResponse-class.html#close,Method api_shim.core.http.WebSocket.close()=api_shim.core.http.WebSocket-class.html#close,Method api_shim.core.net.NetClient.close()=api_shim.core.net.NetClient-class.html#close,Method api_shim.core.net.NetServer.close()=api_shim.core.net.NetServer-class.html#close,Method api_shim.core.net.NetSocket.close()=api_shim.core.net.NetSocket-class.html#close,Method api_shim.core.sock_js.SockJSSocket.close()=api_shim.core.sock_js.SockJSSocket-class.html#close"><a title="api_shim.core.file_system.AsyncFile.close
api_shim.core.http.HttpClient.close
api_shim.core.http.HttpServer.close
api_shim.core.http.HttpServerResponse.close
api_shim.core.http.WebSocket.close
api_shim.core.net.NetClient.close
api_shim.core.net.NetServer.close
api_shim.core.net.NetSocket.close
api_shim.core.sock_js.SockJSSocket.close" class="py-name" href="#" onclick="return doclink('link-14', 'close', 'link-14');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name"><a title="api_shim.core.file_system.AsyncFile.close
api_shim.core.http.HttpClient.close
api_shim.core.http.HttpServer.close
api_shim.core.http.HttpServerResponse.close
api_shim.core.http.WebSocket.close
api_shim.core.net.NetClient.close
api_shim.core.net.NetServer.close
api_shim.core.net.NetSocket.close
api_shim.core.sock_js.SockJSSocket.close" class="py-name" href="#" onclick="return doclink('link-15', 'close', 'link-14');">close</a></tt><tt class="py-op">(</tt><tt id="link-16" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-16', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"> </tt>
<a name="AsyncFile.write_at_pos"></a><div id="AsyncFile.write_at_pos-def"><a name="L109"></a><tt class="py-lineno">109</tt> <a class="py-toggle" href="#" id="AsyncFile.write_at_pos-toggle" onclick="return toggle('AsyncFile.write_at_pos');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.AsyncFile-class.html#write_at_pos">write_at_pos</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">buf</tt><tt class="py-op">,</tt> <tt class="py-param">position</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AsyncFile.write_at_pos-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AsyncFile.write_at_pos-expanded"><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-docstring">"""Write a Buffer to the file, asynchronously.</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt class="py-docstring">        When multiple writes are invoked on the same file</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-docstring">        there are no guarantees as to order in which those writes actually occur.</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt class="py-docstring">        @param buffer: the buffer to write</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt class="py-docstring">        @param position: the position in the file where to write the buffer. Position is measured in bytes and</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"><tt class="py-docstring">        starts with zero at the beginning of the file.</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Method api_shim.core.streams.WriteStream.write()=api_shim.core.streams.WriteStream-class.html#write"><a title="api_shim.core.streams.WriteStream.write" class="py-name" href="#" onclick="return doclink('link-17', 'write', 'link-17');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">buf</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name" targets="Method api_shim.core.buffer.Buffer._to_java_buffer()=api_shim.core.buffer.Buffer-class.html#_to_java_buffer"><a title="api_shim.core.buffer.Buffer._to_java_buffer" class="py-name" href="#" onclick="return doclink('link-18', '_to_java_buffer', 'link-18');">_to_java_buffer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">position</tt><tt class="py-op">,</tt> <tt id="link-19" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-19', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"> </tt>
<a name="AsyncFile.read_at_pos"></a><div id="AsyncFile.read_at_pos-def"><a name="L123"></a><tt class="py-lineno">123</tt> <a class="py-toggle" href="#" id="AsyncFile.read_at_pos-toggle" onclick="return toggle('AsyncFile.read_at_pos');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.AsyncFile-class.html#read_at_pos">read_at_pos</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">buf</tt><tt class="py-op">,</tt> <tt class="py-param">offset</tt><tt class="py-op">,</tt> <tt class="py-param">position</tt><tt class="py-op">,</tt> <tt class="py-param">length</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AsyncFile.read_at_pos-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AsyncFile.read_at_pos-expanded"><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-docstring">"""Reads some data from a file into a buffer, asynchronously.</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"><tt class="py-docstring">        When multiple reads are invoked on the same file</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"><tt class="py-docstring">        there are no guarantees as to order in which those reads actually occur.</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments  </tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"><tt class="py-docstring">        @param buffer: the buffer into which the data which is read is written.</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"><tt class="py-docstring">        @param offset: the position in the buffer where to start writing the data.</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-docstring">        @param position: the position in the file where to read the data.</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">        @param length: the number of bytes to read.</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">converter</tt><tt class="py-op">(</tt><tt class="py-param">buf</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-20" class="py-name"><a title="api_shim.core.buffer.Buffer" class="py-name" href="#" onclick="return doclink('link-20', 'Buffer', 'link-7');">Buffer</a></tt><tt class="py-op">(</tt><tt class="py-name">buf</tt><tt class="py-op">)</tt> </tt>
</div><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">read</tt><tt class="py-op">(</tt><tt class="py-name">buf</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="api_shim.core.buffer.Buffer._to_java_buffer" class="py-name" href="#" onclick="return doclink('link-21', '_to_java_buffer', 'link-18');">_to_java_buffer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">offset</tt><tt class="py-op">,</tt> <tt class="py-name">position</tt><tt class="py-op">,</tt> <tt id="link-22" class="py-name" targets="Method api_shim.core.buffer.Buffer.length()=api_shim.core.buffer.Buffer-class.html#length"><a title="api_shim.core.buffer.Buffer.length" class="py-name" href="#" onclick="return doclink('link-22', 'length', 'link-22');">length</a></tt><tt class="py-op">,</tt> <tt id="link-23" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-23', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">,</tt> <tt class="py-name">converter</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"> </tt>
<a name="AsyncFile.flush"></a><div id="AsyncFile.flush-def"><a name="L139"></a><tt class="py-lineno">139</tt> <a class="py-toggle" href="#" id="AsyncFile.flush-toggle" onclick="return toggle('AsyncFile.flush');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.AsyncFile-class.html#flush">flush</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AsyncFile.flush-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AsyncFile.flush-expanded"><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">        <tt class="py-docstring">"""Flush any writes made to this file to underlying persistent storage, asynchronously.</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line"><tt class="py-docstring">        If the file was opened with flush set to true then calling this method will have no effect.</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the handler which is called on completion.</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">handler</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">            <tt class="py-name">Future</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Method api_shim.core.file_system.AsyncFile.flush()=api_shim.core.file_system.AsyncFile-class.html#flush"><a title="api_shim.core.file_system.AsyncFile.flush" class="py-name" href="#" onclick="return doclink('link-24', 'flush', 'link-24');">flush</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">            <tt class="py-name">Future</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name"><a title="api_shim.core.file_system.AsyncFile.flush" class="py-name" href="#" onclick="return doclink('link-25', 'flush', 'link-24');">flush</a></tt><tt class="py-op">(</tt><tt id="link-26" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-26', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div></div><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line"> </tt>
<a name="FileSystem"></a><div id="FileSystem-def"><a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt> <a class="py-toggle" href="#" id="FileSystem-toggle" onclick="return toggle('FileSystem');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html">FileSystem</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="FileSystem-expanded"><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">    <tt class="py-docstring">"""Represents the file-system and contains a broad set of operations for manipulating files.</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-docstring">    An asynchronous and a synchronous version of each operation is provided.</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line"><tt class="py-docstring">    The asynchronous versions take a handler as a final argument which is</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"><tt class="py-docstring">    called when the operation completes or an error occurs. The handler is called</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"><tt class="py-docstring">    with two arguments; the first an exception, this will be None if the operation has</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"><tt class="py-docstring">    succeeded. The second is the result - this will be None if the operation failed or</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"><tt class="py-docstring">    there was no result to return.</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"><tt class="py-docstring">    The synchronous versions return the results, or throw exceptions directly."""</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.__init__"></a><div id="FileSystem.__init__-def"><a name="L163"></a><tt class="py-lineno">163</tt> <a class="py-toggle" href="#" id="FileSystem.__init__-toggle" onclick="return toggle('FileSystem.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.__init__-expanded"><a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">org</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="api_shim.vertx" class="py-name" href="#" onclick="return doclink('link-27', 'vertx', 'link-2');">vertx</a></tt><tt class="py-op">.</tt><tt class="py-name">java</tt><tt class="py-op">.</tt><tt class="py-name">platform</tt><tt class="py-op">.</tt><tt class="py-name">impl</tt><tt class="py-op">.</tt><tt class="py-name">JythonVerticleFactory</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="api_shim.vertx" class="py-name" href="#" onclick="return doclink('link-28', 'vertx', 'link-2');">vertx</a></tt><tt class="py-op">.</tt><tt class="py-name">fileSystem</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.copy"></a><div id="FileSystem.copy-def"><a name="L167"></a><tt class="py-lineno">167</tt> <a class="py-toggle" href="#" id="FileSystem.copy-toggle" onclick="return toggle('FileSystem.copy');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#copy">copy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.copy-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.copy-expanded"><a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">        <tt class="py-docstring">"""Copy a file, asynchronously. The copy will fail if from does not exist, or if to already exists.</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line"><tt class="py-docstring">        @param frm: path of file to copy</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line"><tt class="py-docstring">        @param to: path of file to copy to</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the handler which is called on completion."""</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name" targets="Method api_shim.core.buffer.Buffer.copy()=api_shim.core.buffer.Buffer-class.html#copy,Method api_shim.core.file_system.FileSystem.copy()=api_shim.core.file_system.FileSystem-class.html#copy"><a title="api_shim.core.buffer.Buffer.copy
api_shim.core.file_system.FileSystem.copy" class="py-name" href="#" onclick="return doclink('link-29', 'copy', 'link-29');">copy</a></tt><tt class="py-op">(</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">,</tt> <tt id="link-30" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-30', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.copy_sync"></a><div id="FileSystem.copy_sync-def"><a name="L177"></a><tt class="py-lineno">177</tt> <a class="py-toggle" href="#" id="FileSystem.copy_sync-toggle" onclick="return toggle('FileSystem.copy_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#copy_sync">copy_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.copy_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.copy_sync-expanded"><a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.copy"""</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">copySync</tt><tt class="py-op">(</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">)</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.copy_recursive"></a><div id="FileSystem.copy_recursive-def"><a name="L182"></a><tt class="py-lineno">182</tt> <a class="py-toggle" href="#" id="FileSystem.copy_recursive-toggle" onclick="return toggle('FileSystem.copy_recursive');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#copy_recursive">copy_recursive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.copy_recursive-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.copy_recursive-expanded"><a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">        <tt class="py-docstring">"""Copy a file recursively, asynchronously. The copy will fail if from does not exist, or if to already exists and is not empty.</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line"><tt class="py-docstring">        If the source is a directory all contents of the directory will be copied recursively, i.e. the entire directory</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line"><tt class="py-docstring">        tree is copied.</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line"><tt class="py-docstring">        @param frm: path of file to copy</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line"><tt class="py-docstring">        @param to: path of file to copy to</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="api_shim.core.buffer.Buffer.copy
api_shim.core.file_system.FileSystem.copy" class="py-name" href="#" onclick="return doclink('link-31', 'copy', 'link-29');">copy</a></tt><tt class="py-op">(</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">,</tt> <tt id="link-32" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-32', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.copy_recursive_sync"></a><div id="FileSystem.copy_recursive_sync-def"><a name="L195"></a><tt class="py-lineno">195</tt> <a class="py-toggle" href="#" id="FileSystem.copy_recursive_sync-toggle" onclick="return toggle('FileSystem.copy_recursive_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#copy_recursive_sync">copy_recursive_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.copy_recursive_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.copy_recursive_sync-expanded"><a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.copy_recursive"""</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">copySync</tt><tt class="py-op">(</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.move"></a><div id="FileSystem.move-def"><a name="L200"></a><tt class="py-lineno">200</tt> <a class="py-toggle" href="#" id="FileSystem.move-toggle" onclick="return toggle('FileSystem.move');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#move">move</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.move-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.move-expanded"><a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">        <tt class="py-docstring">"""Move a file, asynchronously. The move will fail if from does not exist, or if to already exists.</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line"><tt class="py-docstring">        @param frm: Path of file to move</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line"><tt class="py-docstring">        @param to: Path of file to move to</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name" targets="Method api_shim.core.file_system.FileSystem.move()=api_shim.core.file_system.FileSystem-class.html#move"><a title="api_shim.core.file_system.FileSystem.move" class="py-name" href="#" onclick="return doclink('link-33', 'move', 'link-33');">move</a></tt><tt class="py-op">(</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">,</tt> <tt id="link-34" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-34', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.move_sync"></a><div id="FileSystem.move_sync-def"><a name="L211"></a><tt class="py-lineno">211</tt> <a class="py-toggle" href="#" id="FileSystem.move_sync-toggle" onclick="return toggle('FileSystem.move_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#move_sync">move_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">frm</tt><tt class="py-op">,</tt> <tt class="py-param">to</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.move_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.move_sync-expanded"><a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.move"""</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">moveSync</tt><tt class="py-op">(</tt><tt class="py-name">frm</tt><tt class="py-op">,</tt> <tt class="py-name">to</tt><tt class="py-op">)</tt> </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.truncate"></a><div id="FileSystem.truncate-def"><a name="L216"></a><tt class="py-lineno">216</tt> <a class="py-toggle" href="#" id="FileSystem.truncate-toggle" onclick="return toggle('FileSystem.truncate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#truncate">truncate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">len</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.truncate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.truncate-expanded"><a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">        <tt class="py-docstring">"""Truncate a file, asynchronously. The move will fail if path does not exist.</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: Path of file to truncate</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line"><tt class="py-docstring">        @param len: Length to truncate file to. Will fail if len &lt; 0. If len &gt; file size then will do nothing.</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name" targets="Method api_shim.core.file_system.FileSystem.truncate()=api_shim.core.file_system.FileSystem-class.html#truncate"><a title="api_shim.core.file_system.FileSystem.truncate" class="py-name" href="#" onclick="return doclink('link-35', 'truncate', 'link-35');">truncate</a></tt><tt class="py-op">(</tt><tt id="link-36" class="py-name" targets="Method api_shim.core.http.HttpServerRequest.path()=api_shim.core.http.HttpServerRequest-class.html#path,Method api_shim.core.http.ServerWebSocket.path()=api_shim.core.http.ServerWebSocket-class.html#path"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-36', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">,</tt> <tt id="link-37" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-37', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.truncate_sync"></a><div id="FileSystem.truncate_sync-def"><a name="L227"></a><tt class="py-lineno">227</tt> <a class="py-toggle" href="#" id="FileSystem.truncate_sync-toggle" onclick="return toggle('FileSystem.truncate_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#truncate_sync">truncate_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">len</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.truncate_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.truncate_sync-expanded"><a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.truncate"""</tt> </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">truncateSync</tt><tt class="py-op">(</tt><tt id="link-38" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-38', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">)</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.chmod"></a><div id="FileSystem.chmod-def"><a name="L232"></a><tt class="py-lineno">232</tt> <a class="py-toggle" href="#" id="FileSystem.chmod-toggle" onclick="return toggle('FileSystem.chmod');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#chmod">chmod</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">,</tt> <tt class="py-param">dir_perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.chmod-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.chmod-expanded"><a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">        <tt class="py-docstring">"""Change the permissions on a file, asynchronously. If the file is directory then all contents will also have their permissions changed recursively.</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of file to change permissions</tt> </tt>
<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line"><tt class="py-docstring">        @param perms: a permission string of the form rwxr-x--- as specified in http://download.oracle.com/javase/7/docs/api/java/nio/file/attribute/PosixFilePermissions.html. This is</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line"><tt class="py-docstring">        used to set the permissions for any regular files (not directories).</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line"><tt class="py-docstring">        @param dir_perms: a permission string of the form rwxr-x---. Used to set permissions for regular files.</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name" targets="Method api_shim.core.file_system.FileSystem.chmod()=api_shim.core.file_system.FileSystem-class.html#chmod"><a title="api_shim.core.file_system.FileSystem.chmod" class="py-name" href="#" onclick="return doclink('link-39', 'chmod', 'link-39');">chmod</a></tt><tt class="py-op">(</tt><tt id="link-40" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-40', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt class="py-name">dir_perms</tt><tt class="py-op">,</tt> <tt id="link-41" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-41', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.chmod_sync"></a><div id="FileSystem.chmod_sync-def"><a name="L245"></a><tt class="py-lineno">245</tt> <a class="py-toggle" href="#" id="FileSystem.chmod_sync-toggle" onclick="return toggle('FileSystem.chmod_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#chmod_sync">chmod_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">,</tt> <tt class="py-param">dir_perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.chmod_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.chmod_sync-expanded"><a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.chmod"""</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">chmodSync</tt><tt class="py-op">(</tt><tt id="link-42" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-42', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt class="py-name">dir_perms</tt><tt class="py-op">)</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.props"></a><div id="FileSystem.props-def"><a name="L250"></a><tt class="py-lineno">250</tt> <a class="py-toggle" href="#" id="FileSystem.props-toggle" onclick="return toggle('FileSystem.props');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#props">props</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.props-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.props-expanded"><a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">        <tt class="py-docstring">"""Get file properties for a file, asynchronously.</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path to file</tt> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">converter</tt><tt class="py-op">(</tt><tt class="py-param">obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-43" class="py-name" targets="Class api_shim.core.file_system.FileProps=api_shim.core.file_system.FileProps-class.html"><a title="api_shim.core.file_system.FileProps" class="py-name" href="#" onclick="return doclink('link-43', 'FileProps', 'link-43');">FileProps</a></tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line"> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Method api_shim.core.file_system.FileSystem.props()=api_shim.core.file_system.FileSystem-class.html#props"><a title="api_shim.core.file_system.FileSystem.props" class="py-name" href="#" onclick="return doclink('link-44', 'props', 'link-44');">props</a></tt><tt class="py-op">(</tt><tt id="link-45" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-45', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt id="link-46" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-46', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">,</tt> <tt class="py-name">converter</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.props_sync"></a><div id="FileSystem.props_sync-def"><a name="L263"></a><tt class="py-lineno">263</tt> <a class="py-toggle" href="#" id="FileSystem.props_sync-toggle" onclick="return toggle('FileSystem.props_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#props_sync">props_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.props_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.props_sync-expanded"><a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.props"""</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">        <tt class="py-name">java_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">propsSync</tt><tt class="py-op">(</tt><tt id="link-47" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-47', 'path', 'link-36');">path</a></tt><tt class="py-op">)</tt> </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-48" class="py-name"><a title="api_shim.core.file_system.FileProps" class="py-name" href="#" onclick="return doclink('link-48', 'FileProps', 'link-43');">FileProps</a></tt><tt class="py-op">(</tt><tt class="py-name">java_obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.lprops"></a><div id="FileSystem.lprops-def"><a name="L268"></a><tt class="py-lineno">268</tt> <a class="py-toggle" href="#" id="FileSystem.lprops-toggle" onclick="return toggle('FileSystem.lprops');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#lprops">lprops</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.lprops-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.lprops-expanded"><a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">        <tt class="py-docstring">""" Obtain properties for the link represented by {@code path}, asynchronously.</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line"><tt class="py-docstring">         The link will not be followed..</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path to file</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">converter</tt><tt class="py-op">(</tt><tt class="py-param">obj</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-49" class="py-name"><a title="api_shim.core.file_system.FileProps" class="py-name" href="#" onclick="return doclink('link-49', 'FileProps', 'link-43');">FileProps</a></tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line"> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name" targets="Method api_shim.core.file_system.FileSystem.lprops()=api_shim.core.file_system.FileSystem-class.html#lprops"><a title="api_shim.core.file_system.FileSystem.lprops" class="py-name" href="#" onclick="return doclink('link-50', 'lprops', 'link-50');">lprops</a></tt><tt class="py-op">(</tt><tt id="link-51" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-51', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt id="link-52" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-52', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">,</tt> <tt class="py-name">converter</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
<a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line"> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">        <tt class="py-string">"""Synchronous version of FileSystem.lprops"""</tt> </tt>
</div><a name="FileSystem.lprops_sync"></a><div id="FileSystem.lprops_sync-def"><a name="L283"></a><tt class="py-lineno">283</tt> <a class="py-toggle" href="#" id="FileSystem.lprops_sync-toggle" onclick="return toggle('FileSystem.lprops_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#lprops_sync">lprops_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.lprops_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.lprops_sync-expanded"><a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.props"""</tt> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line">        <tt class="py-name">java_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">lpropsSync</tt><tt class="py-op">(</tt><tt id="link-53" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-53', 'path', 'link-36');">path</a></tt><tt class="py-op">)</tt> </tt>
<a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-54" class="py-name"><a title="api_shim.core.file_system.FileProps" class="py-name" href="#" onclick="return doclink('link-54', 'FileProps', 'link-43');">FileProps</a></tt><tt class="py-op">(</tt><tt class="py-name">java_obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line"> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.link"></a><div id="FileSystem.link-def"><a name="L289"></a><tt class="py-lineno">289</tt> <a class="py-toggle" href="#" id="FileSystem.link-toggle" onclick="return toggle('FileSystem.link');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#link">link</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">,</tt> <tt class="py-param">existing</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.link-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.link-expanded"><a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line">        <tt class="py-docstring">"""Create a hard link, asynchronously..</tt> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line"><tt class="py-docstring">        @param link: path of the link to create.</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line"><tt class="py-docstring">        @param existing: path of where the link points to.</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name" targets="Method api_shim.core.file_system.FileSystem.link()=api_shim.core.file_system.FileSystem-class.html#link"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-55', 'link', 'link-55');">link</a></tt><tt class="py-op">(</tt><tt id="link-56" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-56', 'link', 'link-55');">link</a></tt><tt class="py-op">,</tt> <tt class="py-name">existing</tt><tt class="py-op">,</tt> <tt id="link-57" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-57', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.link_sync"></a><div id="FileSystem.link_sync-def"><a name="L300"></a><tt class="py-lineno">300</tt> <a class="py-toggle" href="#" id="FileSystem.link_sync-toggle" onclick="return toggle('FileSystem.link_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#link_sync">link_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">,</tt> <tt class="py-param">existing</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.link_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.link_sync-expanded"><a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.link"""</tt> </tt>
<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">linkSync</tt><tt class="py-op">(</tt><tt id="link-58" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-58', 'link', 'link-55');">link</a></tt><tt class="py-op">,</tt> <tt class="py-name">existing</tt><tt class="py-op">)</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.symlink"></a><div id="FileSystem.symlink-def"><a name="L305"></a><tt class="py-lineno">305</tt> <a class="py-toggle" href="#" id="FileSystem.symlink-toggle" onclick="return toggle('FileSystem.symlink');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#symlink">symlink</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">,</tt> <tt class="py-param">existing</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.symlink-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.symlink-expanded"><a name="L306"></a><tt class="py-lineno">306</tt>  <tt class="py-line">        <tt class="py-docstring">"""Create a symbolic link, asynchronously.</tt> </tt>
<a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L309"></a><tt class="py-lineno">309</tt>  <tt class="py-line"><tt class="py-docstring">        @param link: Path of the link to create.</tt> </tt>
<a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line"><tt class="py-docstring">        @param existing: Path of where the link points to.</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L312"></a><tt class="py-lineno">312</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Method api_shim.core.file_system.FileSystem.symlink()=api_shim.core.file_system.FileSystem-class.html#symlink"><a title="api_shim.core.file_system.FileSystem.symlink" class="py-name" href="#" onclick="return doclink('link-59', 'symlink', 'link-59');">symlink</a></tt><tt class="py-op">(</tt><tt id="link-60" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-60', 'link', 'link-55');">link</a></tt><tt class="py-op">,</tt> <tt class="py-name">existing</tt><tt class="py-op">,</tt> <tt id="link-61" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-61', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.symlink_sync"></a><div id="FileSystem.symlink_sync-def"><a name="L316"></a><tt class="py-lineno">316</tt> <a class="py-toggle" href="#" id="FileSystem.symlink_sync-toggle" onclick="return toggle('FileSystem.symlink_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#symlink_sync">symlink_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">,</tt> <tt class="py-param">existing</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.symlink_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.symlink_sync-expanded"><a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.symlink"""</tt> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">symlinkSync</tt><tt class="py-op">(</tt><tt id="link-62" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-62', 'link', 'link-55');">link</a></tt><tt class="py-op">,</tt> <tt class="py-name">existing</tt><tt class="py-op">)</tt> </tt>
<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.unlink"></a><div id="FileSystem.unlink-def"><a name="L321"></a><tt class="py-lineno">321</tt> <a class="py-toggle" href="#" id="FileSystem.unlink-toggle" onclick="return toggle('FileSystem.unlink');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#unlink">unlink</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.unlink-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.unlink-expanded"><a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line">        <tt class="py-docstring">"""Unlink a hard link.</tt> </tt>
<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line"><tt class="py-docstring">        @param link: path of the link to unlink.</tt> </tt>
<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name" targets="Method api_shim.core.file_system.FileSystem.unlink()=api_shim.core.file_system.FileSystem-class.html#unlink"><a title="api_shim.core.file_system.FileSystem.unlink" class="py-name" href="#" onclick="return doclink('link-63', 'unlink', 'link-63');">unlink</a></tt><tt class="py-op">(</tt><tt id="link-64" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-64', 'link', 'link-55');">link</a></tt><tt class="py-op">,</tt> <tt id="link-65" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-65', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.unlinkSync"></a><div id="FileSystem.unlinkSync-def"><a name="L330"></a><tt class="py-lineno">330</tt> <a class="py-toggle" href="#" id="FileSystem.unlinkSync-toggle" onclick="return toggle('FileSystem.unlinkSync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#unlinkSync">unlinkSync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.unlinkSync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.unlinkSync-expanded"><a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.unlink"""</tt> </tt>
<a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name" targets="Method api_shim.core.file_system.FileSystem.unlinkSync()=api_shim.core.file_system.FileSystem-class.html#unlinkSync"><a title="api_shim.core.file_system.FileSystem.unlinkSync" class="py-name" href="#" onclick="return doclink('link-66', 'unlinkSync', 'link-66');">unlinkSync</a></tt><tt class="py-op">(</tt><tt id="link-67" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-67', 'link', 'link-55');">link</a></tt><tt class="py-op">)</tt> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.read_symlink"></a><div id="FileSystem.read_symlink-def"><a name="L335"></a><tt class="py-lineno">335</tt> <a class="py-toggle" href="#" id="FileSystem.read_symlink-toggle" onclick="return toggle('FileSystem.read_symlink');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#read_symlink">read_symlink</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.read_symlink-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.read_symlink-expanded"><a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line">        <tt class="py-docstring">"""Read a symbolic link, asynchronously. I.e. tells you where the symbolic link points.</tt> </tt>
<a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line"><tt class="py-docstring">        @param link: path of the link to read.</tt> </tt>
<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">readSymlink</tt><tt class="py-op">(</tt><tt id="link-68" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-68', 'link', 'link-55');">link</a></tt><tt class="py-op">,</tt> <tt id="link-69" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-69', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.read_symlink_sync"></a><div id="FileSystem.read_symlink_sync-def"><a name="L345"></a><tt class="py-lineno">345</tt> <a class="py-toggle" href="#" id="FileSystem.read_symlink_sync-toggle" onclick="return toggle('FileSystem.read_symlink_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#read_symlink_sync">read_symlink_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.read_symlink_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.read_symlink_sync-expanded"><a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.read_symlink"""</tt> </tt>
<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">readSymlinkSync</tt><tt class="py-op">(</tt><tt id="link-70" class="py-name"><a title="api_shim.core.file_system.FileSystem.link" class="py-name" href="#" onclick="return doclink('link-70', 'link', 'link-55');">link</a></tt><tt class="py-op">)</tt> </tt>
<a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.delete"></a><div id="FileSystem.delete-def"><a name="L350"></a><tt class="py-lineno">350</tt> <a class="py-toggle" href="#" id="FileSystem.delete-toggle" onclick="return toggle('FileSystem.delete');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#delete">delete</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.delete-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.delete-expanded"><a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line">        <tt class="py-docstring">"""Delete a file on the file system, asynchronously.</tt> </tt>
<a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line"><tt class="py-docstring">        The delete will fail if the file does not exist, or is a directory and is not empty.</tt> </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the file to delete.</tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name" targets="Method api_shim.core.file_system.FileSystem.delete()=api_shim.core.file_system.FileSystem-class.html#delete,Method api_shim.core.http.HttpClient.delete()=api_shim.core.http.HttpClient-class.html#delete,Method api_shim.core.http.RouteMatcher.delete()=api_shim.core.http.RouteMatcher-class.html#delete,Method api_shim.core.shared_data.SharedSet.delete()=api_shim.core.shared_data.SharedSet-class.html#delete"><a title="api_shim.core.file_system.FileSystem.delete
api_shim.core.http.HttpClient.delete
api_shim.core.http.RouteMatcher.delete
api_shim.core.shared_data.SharedSet.delete" class="py-name" href="#" onclick="return doclink('link-71', 'delete', 'link-71');">delete</a></tt><tt class="py-op">(</tt><tt id="link-72" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-72', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt id="link-73" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-73', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.delete_sync"></a><div id="FileSystem.delete_sync-def"><a name="L361"></a><tt class="py-lineno">361</tt> <a class="py-toggle" href="#" id="FileSystem.delete_sync-toggle" onclick="return toggle('FileSystem.delete_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#delete_sync">delete_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.delete_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.delete_sync-expanded"><a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.delete"""</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">deleteSync</tt><tt class="py-op">(</tt><tt id="link-74" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-74', 'path', 'link-36');">path</a></tt><tt class="py-op">)</tt> </tt>
<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.delete_recursive"></a><div id="FileSystem.delete_recursive-def"><a name="L366"></a><tt class="py-lineno">366</tt> <a class="py-toggle" href="#" id="FileSystem.delete_recursive-toggle" onclick="return toggle('FileSystem.delete_recursive');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#delete_recursive">delete_recursive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.delete_recursive-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.delete_recursive-expanded"><a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line">        <tt class="py-docstring">"""Delete a file on the file system recursively, asynchronously.</tt> </tt>
<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line"><tt class="py-docstring">        The delete will fail if the file does not exist. If the file is a directory the entire directory contents</tt> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line"><tt class="py-docstring">        will be deleted recursively.</tt> </tt>
<a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the file to delete.</tt> </tt>
<a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L375"></a><tt class="py-lineno">375</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name"><a title="api_shim.core.file_system.FileSystem.delete
api_shim.core.http.HttpClient.delete
api_shim.core.http.RouteMatcher.delete
api_shim.core.shared_data.SharedSet.delete" class="py-name" href="#" onclick="return doclink('link-75', 'delete', 'link-71');">delete</a></tt><tt class="py-op">(</tt><tt id="link-76" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-76', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">,</tt> <tt id="link-77" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-77', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L376"></a><tt class="py-lineno">376</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.delete_recursive_sync"></a><div id="FileSystem.delete_recursive_sync-def"><a name="L378"></a><tt class="py-lineno">378</tt> <a class="py-toggle" href="#" id="FileSystem.delete_recursive_sync-toggle" onclick="return toggle('FileSystem.delete_recursive_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#delete_recursive_sync">delete_recursive_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.delete_recursive_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.delete_recursive_sync-expanded"><a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.delete_recursive"""</tt> </tt>
<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">deleteSync</tt><tt class="py-op">(</tt><tt id="link-78" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-78', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.mkdir"></a><div id="FileSystem.mkdir-def"><a name="L383"></a><tt class="py-lineno">383</tt> <a class="py-toggle" href="#" id="FileSystem.mkdir-toggle" onclick="return toggle('FileSystem.mkdir');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#mkdir">mkdir</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.mkdir-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.mkdir-expanded"><a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line">        <tt class="py-docstring">"""Create a directory, asynchronously.</tt> </tt>
<a name="L385"></a><tt class="py-lineno">385</tt>  <tt class="py-line"><tt class="py-docstring">        The create will fail if the directory already exists, or if it contains parent directories which do not already</tt> </tt>
<a name="L386"></a><tt class="py-lineno">386</tt>  <tt class="py-line"><tt class="py-docstring">        exist.</tt> </tt>
<a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L388"></a><tt class="py-lineno">388</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L389"></a><tt class="py-lineno">389</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the directory to create.</tt> </tt>
<a name="L390"></a><tt class="py-lineno">390</tt>  <tt class="py-line"><tt class="py-docstring">        @param perms: a permission string of the form rwxr-x--- to give directory.</tt> </tt>
<a name="L391"></a><tt class="py-lineno">391</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L392"></a><tt class="py-lineno">392</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L393"></a><tt class="py-lineno">393</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name" targets="Method api_shim.core.file_system.FileSystem.mkdir()=api_shim.core.file_system.FileSystem-class.html#mkdir"><a title="api_shim.core.file_system.FileSystem.mkdir" class="py-name" href="#" onclick="return doclink('link-79', 'mkdir', 'link-79');">mkdir</a></tt><tt class="py-op">(</tt><tt id="link-80" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-80', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt id="link-81" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-81', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L394"></a><tt class="py-lineno">394</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L395"></a><tt class="py-lineno">395</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.mkdir_sync"></a><div id="FileSystem.mkdir_sync-def"><a name="L396"></a><tt class="py-lineno">396</tt> <a class="py-toggle" href="#" id="FileSystem.mkdir_sync-toggle" onclick="return toggle('FileSystem.mkdir_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#mkdir_sync">mkdir_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.mkdir_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.mkdir_sync-expanded"><a name="L397"></a><tt class="py-lineno">397</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.mkdir"""</tt> </tt>
<a name="L398"></a><tt class="py-lineno">398</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">mkdirSync</tt><tt class="py-op">(</tt><tt id="link-82" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-82', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">)</tt> </tt>
<a name="L399"></a><tt class="py-lineno">399</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L400"></a><tt class="py-lineno">400</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.mkdir_with_parents"></a><div id="FileSystem.mkdir_with_parents-def"><a name="L401"></a><tt class="py-lineno">401</tt> <a class="py-toggle" href="#" id="FileSystem.mkdir_with_parents-toggle" onclick="return toggle('FileSystem.mkdir_with_parents');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#mkdir_with_parents">mkdir_with_parents</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.mkdir_with_parents-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.mkdir_with_parents-expanded"><a name="L402"></a><tt class="py-lineno">402</tt>  <tt class="py-line">        <tt class="py-docstring">"""Create a directory, and create all it's parent directories if they do not already exist, asynchronously.</tt> </tt>
<a name="L403"></a><tt class="py-lineno">403</tt>  <tt class="py-line"><tt class="py-docstring">        The create will fail if the directory already exists.</tt> </tt>
<a name="L404"></a><tt class="py-lineno">404</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L405"></a><tt class="py-lineno">405</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L406"></a><tt class="py-lineno">406</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the directory to create.</tt> </tt>
<a name="L407"></a><tt class="py-lineno">407</tt>  <tt class="py-line"><tt class="py-docstring">        @param perms: a permission string of the form rwxr-x--- to give the created directory(ies).</tt> </tt>
<a name="L408"></a><tt class="py-lineno">408</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L409"></a><tt class="py-lineno">409</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="api_shim.core.file_system.FileSystem.mkdir" class="py-name" href="#" onclick="return doclink('link-83', 'mkdir', 'link-79');">mkdir</a></tt><tt class="py-op">(</tt><tt id="link-84" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-84', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">,</tt> <tt id="link-85" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-85', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L410"></a><tt class="py-lineno">410</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L411"></a><tt class="py-lineno">411</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.mkdir_with_parents_sync"></a><div id="FileSystem.mkdir_with_parents_sync-def"><a name="L412"></a><tt class="py-lineno">412</tt> <a class="py-toggle" href="#" id="FileSystem.mkdir_with_parents_sync-toggle" onclick="return toggle('FileSystem.mkdir_with_parents_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#mkdir_with_parents_sync">mkdir_with_parents_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.mkdir_with_parents_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.mkdir_with_parents_sync-expanded"><a name="L413"></a><tt class="py-lineno">413</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.mkdir_with_parents"""</tt> </tt>
<a name="L414"></a><tt class="py-lineno">414</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">mkdirSync</tt><tt class="py-op">(</tt><tt id="link-86" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-86', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L415"></a><tt class="py-lineno">415</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L416"></a><tt class="py-lineno">416</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.read_dir"></a><div id="FileSystem.read_dir-def"><a name="L417"></a><tt class="py-lineno">417</tt> <a class="py-toggle" href="#" id="FileSystem.read_dir-toggle" onclick="return toggle('FileSystem.read_dir');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#read_dir">read_dir</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">filter</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.read_dir-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.read_dir-expanded"><a name="L418"></a><tt class="py-lineno">418</tt>  <tt class="py-line">        <tt class="py-docstring">"""Read a directory, i.e. list it's contents, asynchronously.</tt> </tt>
<a name="L419"></a><tt class="py-lineno">419</tt>  <tt class="py-line"><tt class="py-docstring">        The read will fail if the directory does not exist.</tt> </tt>
<a name="L420"></a><tt class="py-lineno">420</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L421"></a><tt class="py-lineno">421</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L422"></a><tt class="py-lineno">422</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the directory to read.</tt> </tt>
<a name="L423"></a><tt class="py-lineno">423</tt>  <tt class="py-line"><tt class="py-docstring">        @param filter: a regular expression to filter out the contents of the directory. If the filter is not nil</tt> </tt>
<a name="L424"></a><tt class="py-lineno">424</tt>  <tt class="py-line"><tt class="py-docstring">        then only files which match the filter will be returned.</tt> </tt>
<a name="L425"></a><tt class="py-lineno">425</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L426"></a><tt class="py-lineno">426</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L427"></a><tt class="py-lineno">427</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">readDir</tt><tt class="py-op">(</tt><tt id="link-87" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-87', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">filter</tt><tt class="py-op">,</tt> <tt id="link-88" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-88', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L428"></a><tt class="py-lineno">428</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L429"></a><tt class="py-lineno">429</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.read_dir_sync"></a><div id="FileSystem.read_dir_sync-def"><a name="L430"></a><tt class="py-lineno">430</tt> <a class="py-toggle" href="#" id="FileSystem.read_dir_sync-toggle" onclick="return toggle('FileSystem.read_dir_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#read_dir_sync">read_dir_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">filter</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.read_dir_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.read_dir_sync-expanded"><a name="L431"></a><tt class="py-lineno">431</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.read_dir"""</tt> </tt>
<a name="L432"></a><tt class="py-lineno">432</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">readDirSync</tt><tt class="py-op">(</tt><tt id="link-89" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-89', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">filter</tt><tt class="py-op">)</tt> </tt>
<a name="L433"></a><tt class="py-lineno">433</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L434"></a><tt class="py-lineno">434</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.read_file_as_buffer"></a><div id="FileSystem.read_file_as_buffer-def"><a name="L435"></a><tt class="py-lineno">435</tt> <a class="py-toggle" href="#" id="FileSystem.read_file_as_buffer-toggle" onclick="return toggle('FileSystem.read_file_as_buffer');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#read_file_as_buffer">read_file_as_buffer</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.read_file_as_buffer-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.read_file_as_buffer-expanded"><a name="L436"></a><tt class="py-lineno">436</tt>  <tt class="py-line">        <tt class="py-docstring">"""Read the contents of an entire file as a Buffer, asynchronously.</tt> </tt>
<a name="L437"></a><tt class="py-lineno">437</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L438"></a><tt class="py-lineno">438</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L439"></a><tt class="py-lineno">439</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the file to read.</tt> </tt>
<a name="L440"></a><tt class="py-lineno">440</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L441"></a><tt class="py-lineno">441</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L442"></a><tt class="py-lineno">442</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">converter</tt><tt class="py-op">(</tt><tt class="py-param">buffer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L443"></a><tt class="py-lineno">443</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-90" class="py-name"><a title="api_shim.core.buffer.Buffer" class="py-name" href="#" onclick="return doclink('link-90', 'Buffer', 'link-7');">Buffer</a></tt><tt class="py-op">(</tt><tt id="link-91" class="py-name"><a title="api_shim.core.buffer" class="py-name" href="#" onclick="return doclink('link-91', 'buffer', 'link-6');">buffer</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L444"></a><tt class="py-lineno">444</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">readFile</tt><tt class="py-op">(</tt><tt id="link-92" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-92', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt id="link-93" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-93', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">,</tt> <tt class="py-name">converter</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L445"></a><tt class="py-lineno">445</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L446"></a><tt class="py-lineno">446</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.read_file_as_buffer_sync"></a><div id="FileSystem.read_file_as_buffer_sync-def"><a name="L447"></a><tt class="py-lineno">447</tt> <a class="py-toggle" href="#" id="FileSystem.read_file_as_buffer_sync-toggle" onclick="return toggle('FileSystem.read_file_as_buffer_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#read_file_as_buffer_sync">read_file_as_buffer_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.read_file_as_buffer_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.read_file_as_buffer_sync-expanded"><a name="L448"></a><tt class="py-lineno">448</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.read_file_as_buffer"""</tt> </tt>
<a name="L449"></a><tt class="py-lineno">449</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">readFileSync</tt><tt class="py-op">(</tt><tt id="link-94" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-94', 'path', 'link-36');">path</a></tt><tt class="py-op">)</tt> </tt>
<a name="L450"></a><tt class="py-lineno">450</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L451"></a><tt class="py-lineno">451</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.write_buffer_to_file"></a><div id="FileSystem.write_buffer_to_file-def"><a name="L452"></a><tt class="py-lineno">452</tt> <a class="py-toggle" href="#" id="FileSystem.write_buffer_to_file-toggle" onclick="return toggle('FileSystem.write_buffer_to_file');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#write_buffer_to_file">write_buffer_to_file</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">buffer</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.write_buffer_to_file-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.write_buffer_to_file-expanded"><a name="L453"></a><tt class="py-lineno">453</tt>  <tt class="py-line">        <tt class="py-docstring">"""Write a  as the entire contents of a file, asynchronously.</tt> </tt>
<a name="L454"></a><tt class="py-lineno">454</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L455"></a><tt class="py-lineno">455</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L456"></a><tt class="py-lineno">456</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the file to write.</tt> </tt>
<a name="L457"></a><tt class="py-lineno">457</tt>  <tt class="py-line"><tt class="py-docstring">        @param buffer: the Buffer to write</tt> </tt>
<a name="L458"></a><tt class="py-lineno">458</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L459"></a><tt class="py-lineno">459</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L460"></a><tt class="py-lineno">460</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">writeFile</tt><tt class="py-op">(</tt><tt id="link-95" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-95', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt id="link-96" class="py-name"><a title="api_shim.core.buffer" class="py-name" href="#" onclick="return doclink('link-96', 'buffer', 'link-6');">buffer</a></tt><tt class="py-op">,</tt> <tt id="link-97" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-97', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L461"></a><tt class="py-lineno">461</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L462"></a><tt class="py-lineno">462</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.write_buffer_to_file_sync"></a><div id="FileSystem.write_buffer_to_file_sync-def"><a name="L463"></a><tt class="py-lineno">463</tt> <a class="py-toggle" href="#" id="FileSystem.write_buffer_to_file_sync-toggle" onclick="return toggle('FileSystem.write_buffer_to_file_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#write_buffer_to_file_sync">write_buffer_to_file_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">buf</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.write_buffer_to_file_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.write_buffer_to_file_sync-expanded"><a name="L464"></a><tt class="py-lineno">464</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.write_buffer_to_file"""</tt> </tt>
<a name="L465"></a><tt class="py-lineno">465</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">writeFileSync</tt><tt class="py-op">(</tt><tt id="link-98" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-98', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">buf</tt><tt class="py-op">)</tt> </tt>
<a name="L466"></a><tt class="py-lineno">466</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L467"></a><tt class="py-lineno">467</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.open"></a><div id="FileSystem.open-def"><a name="L468"></a><tt class="py-lineno">468</tt> <a class="py-toggle" href="#" id="FileSystem.open-toggle" onclick="return toggle('FileSystem.open');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#open">open</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">read</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">write</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">create_new</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">flush</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.open-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.open-expanded"><a name="L469"></a><tt class="py-lineno">469</tt>  <tt class="py-line">        <tt class="py-docstring">"""Open a file on the file system, asynchronously.</tt> </tt>
<a name="L470"></a><tt class="py-lineno">470</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L471"></a><tt class="py-lineno">471</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L472"></a><tt class="py-lineno">472</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the file to open.</tt> </tt>
<a name="L473"></a><tt class="py-lineno">473</tt>  <tt class="py-line"><tt class="py-docstring">        @param perms: if the file does not exist and create_new is true, then the file will be created with these permissions.</tt> </tt>
<a name="L474"></a><tt class="py-lineno">474</tt>  <tt class="py-line"><tt class="py-docstring">        @param read: open the file for reading?</tt> </tt>
<a name="L475"></a><tt class="py-lineno">475</tt>  <tt class="py-line"><tt class="py-docstring">        @param write: open the file for writing?</tt> </tt>
<a name="L476"></a><tt class="py-lineno">476</tt>  <tt class="py-line"><tt class="py-docstring">        @param create_new: Create the file if it doesn't already exist?</tt> </tt>
<a name="L477"></a><tt class="py-lineno">477</tt>  <tt class="py-line"><tt class="py-docstring">        @param flush: whenever any data is written to the file, flush all changes to permanent storage immediately?</tt> </tt>
<a name="L478"></a><tt class="py-lineno">478</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L479"></a><tt class="py-lineno">479</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L480"></a><tt class="py-lineno">480</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">converter</tt><tt class="py-op">(</tt><tt class="py-param">f</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L481"></a><tt class="py-lineno">481</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-99" class="py-name" targets="Class api_shim.core.file_system.AsyncFile=api_shim.core.file_system.AsyncFile-class.html"><a title="api_shim.core.file_system.AsyncFile" class="py-name" href="#" onclick="return doclink('link-99', 'AsyncFile', 'link-99');">AsyncFile</a></tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">)</tt> </tt>
</div><a name="L482"></a><tt class="py-lineno">482</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name" targets="Method api_shim.core.file_system.FileSystem.open()=api_shim.core.file_system.FileSystem-class.html#open"><a title="api_shim.core.file_system.FileSystem.open" class="py-name" href="#" onclick="return doclink('link-100', 'open', 'link-100');">open</a></tt><tt class="py-op">(</tt><tt id="link-101" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-101', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt class="py-name">read</tt><tt class="py-op">,</tt> <tt id="link-102" class="py-name"><a title="api_shim.core.streams.WriteStream.write" class="py-name" href="#" onclick="return doclink('link-102', 'write', 'link-17');">write</a></tt><tt class="py-op">,</tt> <tt class="py-name">create_new</tt><tt class="py-op">,</tt> <tt id="link-103" class="py-name"><a title="api_shim.core.file_system.AsyncFile.flush" class="py-name" href="#" onclick="return doclink('link-103', 'flush', 'link-24');">flush</a></tt><tt class="py-op">,</tt> <tt id="link-104" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-104', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">,</tt> <tt class="py-name">converter</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L483"></a><tt class="py-lineno">483</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L484"></a><tt class="py-lineno">484</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.open_sync"></a><div id="FileSystem.open_sync-def"><a name="L485"></a><tt class="py-lineno">485</tt> <a class="py-toggle" href="#" id="FileSystem.open_sync-toggle" onclick="return toggle('FileSystem.open_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#open_sync">open_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">read</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">write</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">create_new</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">flush</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.open_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.open_sync-expanded"><a name="L486"></a><tt class="py-lineno">486</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.open"""</tt> </tt>
<a name="L487"></a><tt class="py-lineno">487</tt>  <tt class="py-line">        <tt class="py-name">java_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="api_shim.core.file_system.FileSystem.open" class="py-name" href="#" onclick="return doclink('link-105', 'open', 'link-100');">open</a></tt><tt class="py-op">(</tt><tt id="link-106" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-106', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt class="py-name">read</tt><tt class="py-op">,</tt> <tt id="link-107" class="py-name"><a title="api_shim.core.streams.WriteStream.write" class="py-name" href="#" onclick="return doclink('link-107', 'write', 'link-17');">write</a></tt><tt class="py-op">,</tt> <tt class="py-name">create_new</tt><tt class="py-op">,</tt> <tt id="link-108" class="py-name"><a title="api_shim.core.file_system.AsyncFile.flush" class="py-name" href="#" onclick="return doclink('link-108', 'flush', 'link-24');">flush</a></tt><tt class="py-op">)</tt> </tt>
<a name="L488"></a><tt class="py-lineno">488</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-109" class="py-name"><a title="api_shim.core.file_system.AsyncFile" class="py-name" href="#" onclick="return doclink('link-109', 'AsyncFile', 'link-99');">AsyncFile</a></tt><tt class="py-op">(</tt><tt class="py-name">java_obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L489"></a><tt class="py-lineno">489</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.create_file"></a><div id="FileSystem.create_file-def"><a name="L490"></a><tt class="py-lineno">490</tt> <a class="py-toggle" href="#" id="FileSystem.create_file-toggle" onclick="return toggle('FileSystem.create_file');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#create_file">create_file</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.create_file-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.create_file-expanded"><a name="L491"></a><tt class="py-lineno">491</tt>  <tt class="py-line">        <tt class="py-docstring">"""Create a new empty file, asynchronously.</tt> </tt>
<a name="L492"></a><tt class="py-lineno">492</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L493"></a><tt class="py-lineno">493</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L494"></a><tt class="py-lineno">494</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: path of the file to create.</tt> </tt>
<a name="L495"></a><tt class="py-lineno">495</tt>  <tt class="py-line"><tt class="py-docstring">        @param perms: the file will be created with these permissions.</tt> </tt>
<a name="L496"></a><tt class="py-lineno">496</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L497"></a><tt class="py-lineno">497</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L498"></a><tt class="py-lineno">498</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">createFile</tt><tt class="py-op">(</tt><tt id="link-110" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-110', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">,</tt> <tt id="link-111" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-111', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L499"></a><tt class="py-lineno">499</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L500"></a><tt class="py-lineno">500</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.create_file_sync"></a><div id="FileSystem.create_file_sync-def"><a name="L501"></a><tt class="py-lineno">501</tt> <a class="py-toggle" href="#" id="FileSystem.create_file_sync-toggle" onclick="return toggle('FileSystem.create_file_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#create_file_sync">create_file_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">perms</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.create_file_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.create_file_sync-expanded"><a name="L502"></a><tt class="py-lineno">502</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.create_file"""</tt> </tt>
<a name="L503"></a><tt class="py-lineno">503</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">createFileSync</tt><tt class="py-op">(</tt><tt id="link-112" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-112', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt class="py-name">perms</tt><tt class="py-op">)</tt> </tt>
<a name="L504"></a><tt class="py-lineno">504</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L505"></a><tt class="py-lineno">505</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.exists"></a><div id="FileSystem.exists-def"><a name="L506"></a><tt class="py-lineno">506</tt> <a class="py-toggle" href="#" id="FileSystem.exists-toggle" onclick="return toggle('FileSystem.exists');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#exists">exists</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.exists-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.exists-expanded"><a name="L507"></a><tt class="py-lineno">507</tt>  <tt class="py-line">        <tt class="py-docstring">"""Check if  a file exists, asynchronously.</tt> </tt>
<a name="L508"></a><tt class="py-lineno">508</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L509"></a><tt class="py-lineno">509</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L510"></a><tt class="py-lineno">510</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: Path of the file to check.</tt> </tt>
<a name="L511"></a><tt class="py-lineno">511</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L512"></a><tt class="py-lineno">512</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L513"></a><tt class="py-lineno">513</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name" targets="Method api_shim.core.file_system.FileSystem.exists()=api_shim.core.file_system.FileSystem-class.html#exists"><a title="api_shim.core.file_system.FileSystem.exists" class="py-name" href="#" onclick="return doclink('link-113', 'exists', 'link-113');">exists</a></tt><tt class="py-op">(</tt><tt id="link-114" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-114', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt id="link-115" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-115', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L514"></a><tt class="py-lineno">514</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L515"></a><tt class="py-lineno">515</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.exists_sync"></a><div id="FileSystem.exists_sync-def"><a name="L516"></a><tt class="py-lineno">516</tt> <a class="py-toggle" href="#" id="FileSystem.exists_sync-toggle" onclick="return toggle('FileSystem.exists_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#exists_sync">exists_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.exists_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.exists_sync-expanded"><a name="L517"></a><tt class="py-lineno">517</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.exists"""</tt> </tt>
<a name="L518"></a><tt class="py-lineno">518</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">existsSync</tt><tt class="py-op">(</tt><tt id="link-116" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-116', 'path', 'link-36');">path</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L519"></a><tt class="py-lineno">519</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.fs_props"></a><div id="FileSystem.fs_props-def"><a name="L520"></a><tt class="py-lineno">520</tt> <a class="py-toggle" href="#" id="FileSystem.fs_props-toggle" onclick="return toggle('FileSystem.fs_props');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#fs_props">fs_props</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.fs_props-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.fs_props-expanded"><a name="L521"></a><tt class="py-lineno">521</tt>  <tt class="py-line">        <tt class="py-docstring">"""Get properties for the file system, asynchronously.</tt> </tt>
<a name="L522"></a><tt class="py-lineno">522</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L523"></a><tt class="py-lineno">523</tt>  <tt class="py-line"><tt class="py-docstring">        Keyword arguments:</tt> </tt>
<a name="L524"></a><tt class="py-lineno">524</tt>  <tt class="py-line"><tt class="py-docstring">        @param path: Path in the file system.</tt> </tt>
<a name="L525"></a><tt class="py-lineno">525</tt>  <tt class="py-line"><tt class="py-docstring">        @param handler: the function to call when complete</tt> </tt>
<a name="L526"></a><tt class="py-lineno">526</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L527"></a><tt class="py-lineno">527</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">converter</tt><tt class="py-op">(</tt><tt class="py-param">props</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L528"></a><tt class="py-lineno">528</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-117" class="py-name" targets="Class api_shim.core.file_system.FSProps=api_shim.core.file_system.FSProps-class.html"><a title="api_shim.core.file_system.FSProps" class="py-name" href="#" onclick="return doclink('link-117', 'FSProps', 'link-117');">FSProps</a></tt><tt class="py-op">(</tt><tt id="link-118" class="py-name"><a title="api_shim.core.file_system.FileSystem.props" class="py-name" href="#" onclick="return doclink('link-118', 'props', 'link-44');">props</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L529"></a><tt class="py-lineno">529</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">fsProps</tt><tt class="py-op">(</tt><tt id="link-119" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-119', 'path', 'link-36');">path</a></tt><tt class="py-op">,</tt> <tt id="link-120" class="py-name"><a title="api_shim.core.handlers.AsyncHandler" class="py-name" href="#" onclick="return doclink('link-120', 'AsyncHandler', 'link-10');">AsyncHandler</a></tt><tt class="py-op">(</tt><tt class="py-name">handler</tt><tt class="py-op">,</tt> <tt class="py-name">converter</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L530"></a><tt class="py-lineno">530</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L531"></a><tt class="py-lineno">531</tt>  <tt class="py-line"> </tt>
<a name="FileSystem.fs_props_sync"></a><div id="FileSystem.fs_props_sync-def"><a name="L532"></a><tt class="py-lineno">532</tt> <a class="py-toggle" href="#" id="FileSystem.fs_props_sync-toggle" onclick="return toggle('FileSystem.fs_props_sync');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="api_shim.core.file_system.FileSystem-class.html#fs_props_sync">fs_props_sync</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="FileSystem.fs_props_sync-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="FileSystem.fs_props_sync-expanded"><a name="L533"></a><tt class="py-lineno">533</tt>  <tt class="py-line">        <tt class="py-docstring">"""Synchronous version of FileSystem.fs_props"""</tt> </tt>
<a name="L534"></a><tt class="py-lineno">534</tt>  <tt class="py-line">        <tt class="py-name">j_fsprops</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt class="py-name">fsPropsSync</tt><tt class="py-op">(</tt><tt id="link-121" class="py-name"><a title="api_shim.core.http.HttpServerRequest.path
api_shim.core.http.ServerWebSocket.path" class="py-name" href="#" onclick="return doclink('link-121', 'path', 'link-36');">path</a></tt><tt class="py-op">)</tt> </tt>
<a name="L535"></a><tt class="py-lineno">535</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-122" class="py-name"><a title="api_shim.core.file_system.FSProps" class="py-name" href="#" onclick="return doclink('link-122', 'FSProps', 'link-117');">FSProps</a></tt><tt class="py-op">(</tt><tt class="py-name">j_fsprops</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L536"></a><tt class="py-lineno">536</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1
    on Wed Jul 17 20:25:01 2013
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>